"""
    self 的使用
"""

class Student:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def study(self):
        print(f"{self.name},{self.age}岁了，还要每天 study......... study method exec")

    def eat(self):
        print(f"每天都要吃饭呀,eat method exec")


    def eat_study(self):
        # 通过 self 调用函数
        print("eat_study 执行了===========>")
        # 通过的方式来调用
        Student.study(self)
        # 实例方法中调用别的实例方法
        self.eat()
        self.study()

study = Student("z小佳",30)
study.study()
study.eat_study()
